package com.example.park2212.patrol

import androidx.lifecycle.MutableLiveData
import com.example.lib_base.entity.PatrolBean
import com.example.lib_base.mvvm.BaseViewModel
import com.example.lib_base.net.ApiService
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class PatrolViewModel@Inject constructor(val apiService: ApiService):BaseViewModel() {

    val getPatrolSuccess = MutableLiveData<PatrolBean>()
    fun getPatrol(){
        httpRequest({
            apiService.getPatrol()
        },getPatrolSuccess::postValue)
    }
}